// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ThreadPoolDispatcher.cs" company="JDML Consulting Ltd.">
//   Copyright 2011 Photon Project - http://photon.codeplex.com
// </copyright>
// <summary>
//   Defines the ThreadPoolDispatcher type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Photon.Threading
{
    using System;
    using System.Threading;

    public class ThreadPoolDispatcher : IDispatcher
   {
      public void BeginInvoke(Action action)
      {
         ThreadPool.QueueUserWorkItem(s => action());
      }

        public bool CheckAccess()
        {
            return false;
        }
   }
}